package justtry;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.Callable;

/**
 * Created by weishaofei on 2017/12/9.
 */
public class TestRound {
    public static void main(String[] args) {
        System.out.println(Math.round(-11.5 ));
        System.out.println(2<<1);
        Map map = new HashMap();
        String s1 = "Programming";
        String s2 = new String("Programming");
        String s3 = "Program" + "ming";
        System.out.println(s1 == s2);
        System.out.println(s1 == s3);
        System.out.println(s1 == s1.intern());

        System.out.println(reverse("lisi"));
    }

    private static String reverse(String string){
        char[] chars = string.toCharArray();
        String rev = "";
        for (char cha: chars){
            rev = cha + rev;
        }
        return rev;
    }

    public static class MyThread implements Callable<String>{

        public String call() throws Exception {
            return null;
        }
    }
}
